import {NgModule, ErrorHandler} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {IonicApp, IonicModule, IonicErrorHandler} from 'ionic-angular';
// import {services} from "../provider/service";//发送http请求

import {JsonpModule } from '@angular/http';

//省市区三级联动
import { CityPickerModule } from  "ionic2-city-picker";
import {CityPickerService} from '../provider/city-picker';	//联动的一个单独服务
import {HttpModule} from '@angular/http';

import {MyApp} from './app.component';

import {AboutPage} from '../pages/about/about';
import {ContactPage} from '../pages/contact/contact';
import {HomePage} from '../pages/home/home';
import {TabsPage} from '../pages/tabs/tabs';

import {PassCountPage} from '../pages/person/bypassCount/passCount';
import {ProductInfoPage} from '../pages/home/ProductInfo/ProductInfo';

import {StatusBar} from '@ionic-native/status-bar';
import {SplashScreen} from '@ionic-native/splash-screen';
import {PersonPage} from "../pages/person/person";
import {addTrenchPage} from '../pages/contact/addTrench/addTrench';
//三级跳转，添加已存在经销商客户
import {inexistDealerPage} from '../pages/contact/addTrench/inexistDealer/inexistDealer';
@NgModule({
  declarations: [
    MyApp,
    AboutPage,
    ContactPage,
    HomePage,
    TabsPage,
    
    PersonPage,

    PassCountPage,
    ProductInfoPage,
    addTrenchPage,
    		inexistDealerPage
  ],
  imports: [
  	HttpModule,
  	JsonpModule,
    BrowserModule,
    CityPickerModule,
    //省市区联动
    IonicModule.forRoot(MyApp,
    	{tabsHideOnSubPages: 'true',}
		//    	路由跳转不显示底部tab
    	),
    //省市区联动
   
  ],
  bootstrap: [IonicApp],
  entryComponents: [
    MyApp,
    AboutPage,
    ContactPage,
    HomePage,
    TabsPage,
    PersonPage,
    
    PassCountPage,
    ProductInfoPage,
    addTrenchPage,
    		inexistDealerPage
  ],
  providers: [
    StatusBar,
    SplashScreen,
    {provide: ErrorHandler, useClass: IonicErrorHandler},
    CityPickerService,
    // services
  ]
})
export class AppModule {
}
